﻿/*---------------------------------------------------------------------------------
-----------------***DaLianQianYi***-----------------------
-----------------作者：大连仟亿科技------------------------------------------------------
-----------------联系作者：www.qianyikeji.com----------------------------------
-----------------时间：2020/8/20 15:34:05------------------------------------------
----------------------------------------------------------------------------------*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Donal.Xms.Model
{
    /// <summary>
    /// order_goods_delete实体
    /// </summary>
    [Serializable]
    public partial class order_goods_delete
    {
        public order_goods_delete()
        { }

        #region Model
        /// <summary>
        /// 自增ID
        /// </summary>
        public int id { set; get; } = 0;
        /// <summary>
        /// 订单商品表ID(dt_order_goods表ID)
        /// </summary>
        public int order_goods_id { set; get; } = 0;
        /// <summary>
        /// 主订单ID
        /// </summary>
        public int order_id { set; get; } = 0;
        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { set; get; } = 0;
        /// <summary>
        /// 数量
        /// </summary>
        public int quantity { set; get; } = 0;
        /// <summary>
        /// 0散剪 1整包
        /// </summary>
        public int order_type { set; get; } = 0;
        /// <summary>
        /// 0现货 1交期
        /// </summary>
        public int cart_type { set; get; } = 0;
        /// <summary>
        /// cart_type=1时，最近在途数据ID
        /// </summary>
        public int transit_data_id { set; get; } = 0;
        /// <summary>
        /// 原价
        /// </summary>
        public decimal goods_price { set; get; } = 0;
        /// <summary>
        /// 优惠价
        /// </summary>
        public decimal tehui_price { set; get; } = 0;
        /// <summary>
        /// 产品总额=原价*数量
        /// </summary>
        public decimal goods_sum_price { set; get; } = 0;
        /// <summary>
        /// 积分优惠
        /// </summary>
        public decimal point_money { set; get; } = 0;
        /// <summary>
        /// 优惠券优惠
        /// </summary>
        public decimal coupon_money { set; get; } = 0;
        /// <summary>
        /// 折扣优惠=(原价-优惠价)*数量
        /// </summary>
        public decimal discount_money { set; get; } = 0;
        /// <summary>
        /// 优惠后总价=产品总额-积分优惠-优惠券优惠-折扣优惠
        /// </summary>
        public decimal discount_sum_prices { set; get; } = 0;
        /// <summary>
        /// 优惠单价=优惠后总价/数量
        /// </summary>
        public decimal discount_price { set; get; } = 0;
        /// <summary>
        /// 税费
        /// </summary>
        public decimal goods_tax { set; get; } = 0;
        /// <summary>
        /// 实付金额=优惠后总价+税费
        /// </summary>
        public decimal goods_money { set; get; } = 0;
        /// <summary>
        /// 0正常商品 1特惠商品
        /// </summary>
        public int is_tehui { set; get; } = 0;
        /// <summary>
        /// 商品类别
        /// </summary>
        public int goods_category_id { set; get; } = 0;
        /// <summary>
        /// 0正常商品 1积分商品
        /// </summary>
        public int is_point_goods { set; get; } = 0;
        /// <summary>
        /// 商品编号
        /// </summary>
        public string goods_no { set; get; } = string.Empty;
        /// <summary>
        /// 色号
        /// </summary>
        public string color_no { set; get; } = string.Empty;
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goods_title { set; get; } = string.Empty;
        /// <summary>
        /// 发票ID
        /// </summary>
        public int invoice_id { set; get; } = 0;
        /// <summary>
        /// 出库时间
        /// </summary>
        public DateTime? out_time { set; get; } = null;
        /// <summary>
        /// 发货单编号
        /// </summary>
        public string out_no { set; get; } = string.Empty;
        /// <summary>
        /// 运单号
        /// </summary>
        public string mail_no { set; get; } = string.Empty;
        /// <summary>
        /// 快递单号(发货用)
        /// </summary>
        public string express_no { set; get; } = string.Empty;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime add_time { set; get; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string real_name { set; get; } = string.Empty;

        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name { set; get; } = string.Empty;
        /// <summary>
        /// 退款状态 0 未退  1已退
        /// </summary>
        public int status { set; get; } = 0;

        #endregion
    }
}


